package com.itheima.api.string.create;

/**
 * @author Anomaly
 * @date 2022/12/6 16:51
 */
public class StringDemo1 {
    public static void main(String[] args) {
        String s1 = "abc";
        String s2 = "abc";
        // true
        System.out.println(s1 == s2);

        char[] chars = {'d', 'e', 'f'};
        String s3 = new String(chars);
        String s4 = new String(chars);
        // false
        System.out.println(s3 == s4);
    }
}
